//
//  MTPluginTypeExtension.swift
//  MT
//
//  Created by zhang qiang on 2018/12/11.
//  Copyright © 2019年 张强. All rights reserved.
//

import Foundation
import Moya
import Result

public extension PluginType {
    
    
    /// Called immediately before a request is sent over the network (or stubbed).
    func willSend(_ request: RequestType, target: TargetType) {
        debugPrint("%@ ---- request will send : \n target : ", request.request?.url ?? "", target.path)
    }
    
    /// Called after a response has been received, but before the MoyaProvider has invoked its completion handler.
    func didReceive(_ result: Result<Moya.Response, MoyaError>, target: TargetType) {
        
    }
}

public extension MoyaProviderType {
    
}
